{% extends 'base.html' %}

{% block breadcrumb_current %}
    设备管理 > 编辑设备信息
{% endblock %}

{% block content %}
<div class="bg-light p-3 shadow-sm">
    <h5 style="color: #417690;">
        编辑修改编号为{{ form.number.value }} 的设备信息
        <a href="{% url 'device_list' %}" class="btn btn-secondary btn-sm float-end">返回设备列表</a>
    </h5>
</div>

<div class="container mt-4">
    <form method="post">
        {% csrf_token %}
        <input type="hidden" name="{{ form.number.name }}" value="{{ form.number.value }}">
        <table class="table table-hover">
            <tbody>
                <tr>
                    <th  style="color: #417690;">规格型号</th>
                    <td>{{ form.model }}</td>
                </tr>
                <tr>
                    <th style="color: #417690;">MAC地址</th>
                    <td>{{ form.mac }}</td>
                </tr>
                <tr>
                    <th style="color: #417690;">简要说明</th>
                    <td>{{ form.summary }}</td>
                </tr>
                <tr>
                    <th style="color: #417690;">电路代号</th>
                    <td>{{ form.cust_code }}</td>
                </tr>
                <tr>
                    <th style="color: #417690;">客户名称</th>
                    <td>{{ form.cust_name }}</td>
                </tr>
                <tr>
                    <th style="color: #417690;">来源项目</th>
                    <td>{{ form.project }}</td>
                </tr>
            </tbody>
        </table>
            <div class="text-center"  style="margin-top: 60px; margin-bottom: 60px;">
                <button type="submit" class="btn ms-2" style="background-color: #417690; color: white;">保 存</button>
            </div>
    </form>
</div>
{% endblock %}